{{extend 'layout.html'}}
	{{=H1(T("Personal Quiz"))}}
	<div>
		<div class="icon-overview center" style="background-color:#fff; border-color: #fff; z-index:1; margin: 0 -25px 15px 0; width: 82px; line-height:0"></div>
		<div class="icon-overview left">
			<a href="{{=URL('manage', 'personal/%s/' % ('ALL'))}}">{{=H2('%s %s' % (T('Total'), T('Personal')))}}</a>
			{{if total['personal_total'] is not None:}}<div class="count">{{=total['personal_total']}}</div>{{pass}}
		</div>
		{{for i in range(1,7):}}
		<div class="icon-overview blue center" style="z-index:{{=(15-i)}};">
			<a href="{{=URL('manage', 'personal/%s/%s/' % ('ALL', i))}}">{{=H2(i)}}</a>
			{{if total['personal_%s'%i]:}}<div class="count">{{=total['personal_%s'%i]}}</div>{{pass}}
		</div>
		{{pass}}
		<div style="clear:both;"></div>
	</div>
	{{for row in rows:}}
		{{if row.auth_group.quiz=='quizpersonal':}}
		<div>
			<div class="icon-overview center" style="z-index:1; margin: 0 -25px 15px 0; line-height:0">
				<a href="{{=URL('manage', 'group/%s/' % (row.auth_group.id))}}">{{=IMG(_src=URL('static','images', args='tool_24.png'), _alt=T('Show and/or Edit details'), _style="padding: 1px 38px 1px 18px")}}</a>
			</div>
			<div class="icon-overview left">
				<a href="{{=URL('manage', 'personal/%s/' % (row.auth_group.id))}}">{{=H2(row.auth_group.role)}}</a>
				{{if row.stats.personal_total is not None:}}<div class="count">{{=row.stats.personal_total}}</div>{{pass}}
			</div>
			{{for i in range(1,7):}}
			<div class="icon-overview grey center" style="z-index:{{=(15-i)}};">
				<a href="{{=URL('manage', 'personal/%s/%s/' % (row.auth_group.id, i))}}">{{=H2(i)}}</a>
				{{if row.stats['personal_%s'%i]:}}<div class="count">{{=row.stats['personal_%s'%i]}}</div>{{pass}}
			</div>
			{{pass}}
			<div style="clear:both;"></div>
		</div>
		{{pass}}
	{{pass}}

	{{=H1(T("Regional Quiz"))}}
	<div>
		<div class="icon-overview center" style="background-color:#fff; border-color: #fff; z-index:1; margin: 0 -25px 15px 0; width: 82px; line-height:0"></div>
		<div class="icon-overview left">
			<a href="{{=URL('manage', 'regional/%s/' % ('ALL'))}}">{{=H2('%s %s' % (T('Total'), T('Regional')))}}</a>
			{{if total['regional_total'] is not None:}}<div class="count">{{=total['regional_total']}}</div>{{pass}}
		</div>
		{{for i in range(1,7):}}
		<div class="icon-overview blue center" style="z-index:{{=(8-i)}};">
			<a href="{{=URL('manage', 'regional/%s/%s/' % ('ALL', i))}}">{{=H2(i)}}</a>
			{{if total['regional_%s'%i]:}}<div class="count">{{=total['regional_%s'%i]}}</div>{{pass}}
		</div>
		{{pass}}
		<div style="clear:both;"></div>
	</div>
	{{for row in rows:}}
		{{if row.auth_group.quiz=='quizregional':}}
		<div>
			<div class="icon-overview center" style="z-index:1; margin: 0 -25px 15px 0; line-height:0">
				<a href="{{=URL('manage', 'group/%s/' % (row.auth_group.id))}}">{{=IMG(_src=URL('static','images', args='tool_24.png'), _alt=T('Show and/or Edit details'), _style="padding: 1px 38px 1px 18px")}}</a>
			</div>
			<div class="icon-overview left">
				<a href="{{=URL('manage', 'regional/%s/' % (row.auth_group.id))}}">{{=H2(row.auth_group.role)}}</a>
				{{if row.stats.regional_total is not None:}}<div class="count">{{=row.stats.regional_total}}</div>{{pass}}
			</div>
			{{for i in range(1,7):}}
			<div class="icon-overview grey center" style="z-index:{{=(8-i)}};">
				<a href="{{=URL('manage', 'regional/%s/%s/' % (row.auth_group.id, i))}}">{{=H2(i)}}</a>
				{{if row.stats['regional_%s'%i]:}}<div class="count">{{=row.stats['regional_%s'%i]}}</div>{{pass}}
			</div>
			{{pass}}
			<div style="clear:both;"></div>
		</div>
		{{pass}}
	{{pass}}
